{extend name="default/base/base_seller" /}

{block name="seller_main"}
<style>
    .text-left {
        text-align: left !important;
    }
</style>
<form method="get">
    <table class="search-form">
        <tbody>
        <tr>
            <td>&nbsp;</td>
            <th>类型</th>
            <td class="w100">
                <select name="search_field_name" >
                   <!--  <option {if $search_field_name == 'member_name'}selected='selected'{/if} value="member_name">会员手机号</option> -->
                    <!-- <option {if $search_field_name == 'member_email'}selected='selected'{/if} value="member_email">会员邮箱</option> -->
                    <!-- <option {if $search_field_name == 'member_mobile'}selected='selected'{/if} value="member_mobile">会员手机号</option> -->
                   <!--  <option {if $search_field_name == 'member_truename'}selected='selected'{/if} value="member_truename">会员真实姓名</option> -->
                   <option {if $search_field_name == 'seller_name'}selected='selected'{/if} value="seller_name">职员</option>
                    <option {if $search_field_name == 'enterprise_name'}selected='selected'{/if} value="enterprise_name">客户名称</option>
                </select>
            </td>
            <td class="w160">
                <input type="text" value="{$search_field_value}" name="search_field_value" class="txt">
            </td>
            <!--<th>邀请码</th>
            <td class="w160">
                <input type="text" value="{$invite_code}" name="invite_code" class="txt">
            </td>-->
            <th>注册时间</th>
            <td class="">
                <input class="txt date" type="text" value="{$Request.param.start_time}" id="start_time" name="start_time">—
                <input class="txt date" type="text" value="{$Request.param.end_time}" id="end_time" name="end_time">
            </td>
            <th>账号状态</th>
            <td class="">
                <select name="search_type" id="">
                    <option value="">请选择</option>
                    <option value="1" {$Request.param.search_type == 1 ? 'selected' : ''}>正常</option>
                    <option value="0" {$Request.param.search_type == 0 &&  $Request.param.search_type !=""? 'selected' : ''}>禁用</option>
                </select>
            </td>
            <script>
                $('#start_time').datepicker({dateFormat: 'yy-mm-dd'});
                $('#end_time').datepicker({dateFormat: 'yy-mm-dd'});
            </script>

            <td class="w70 tc">
                <input type="submit" class="submit" value="搜索">
            </td>
        </tr>
        </tbody>
    </table>
</form>

<table class="dssc-default-table">
    <thead>
        <tr>
            <th class="w60"></th>
            <th>用户名</th>
            <th class="tl"></th>
            <th class="tl">邀请人</th>
            <th class="tl">账号状态</th>
        </tr>
    </thead>
    <tbody>
    {notempty name="member_list"}
    {foreach name="member_list" item="v" key="key" }
        <tr class="bd-line">
            <td></td>
            <td style="width: 50px;">
                <div class="size-44x44">
                  <span class="thumb"><i></i>
                      <img src="{:get_member_avatar($v.member_avatar)}?{:microtime()}"  width="44" height="44"/>
                  </span>
                </div>
            </td>
            <td style="text-align: left">
                <p class="name"><strong>
              <?php if(empty($v['member_name'])){ ?>
               未设置
               <?php }else{?>
              {$v.member_name}
               <?php } ?>
                </strong></p>
                <p class="smallfont">注册时间:&nbsp;{$v.member_addtime|date="Y-m-d H:i:s",###}</p>
            </td>
            <td class="text-left" >{$v.invite_name}</td>
            <td class="text-left" >{if $v.member_state == 1}正常{else/}禁用{/if}</td>
            <!-- <td></td> -->
        </tr>
    {/foreach}
    {else /}
        <tr>
            <td colspan="20" class="norecord">
                <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div>
            </td>
        </tr>
    {/notempty}
    </tbody>
</table>

{/block}
